package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.YzrMedOutstock;

public interface IYzrMedOutstockDAO extends CrudRepository<YzrMedOutstock, String> {
	@Query("select max(ymo.medOutstockId) from YzrMedOutstock ymo where ymo.medOutstockId like ?1%")
	public String findMaxId(String a);
	
	
	@Query("select ymo from YzrMedOutstock ymo order by ymo.medOutstockId desc")
	public List<YzrMedOutstock> findByStock(Pageable pageable);
}
